﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace Langben.DAL
{
    [MetadataType(typeof(ts_checkMetadata))]//使用ts_checkMetadata对ts_check进行数据验证
    public partial class ts_check : IBaseEntity
    {
      
        #region 自定义属性，即由数据实体扩展的实体

        [ScaffoldColumn(true)]
        [Display(Name = "商品详细", Order = 2)]
        public string GoodsDetail { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "商品类别", Order = 3)] 
        public string GoodesClass { get; set; }


        [ScaffoldColumn(true)]
        [Display(Name = "损溢数量", Order = 4)]
        public string SYCount { get; set; }

        #endregion

    }
    public class ts_checkMetadata
    {
			[ScaffoldColumn(false)]
			[Display(Name = "Id", Order = 1)]
			public object Id { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "单号", Order = 2)]
			[Range(0,2147483646, ErrorMessage="数值超出范围")]
			public int? i_no { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "日期", Order = 3)]
			[DataType(DataType.DateTime,ErrorMessage="时间格式不正确")]
			[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:d}")]

			public DateTime? dt_dt { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "仓库", Order = 4)]
			[StringLength(20, ErrorMessage = "长度不可超过20")]
			public object c_base { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "盘点人", Order = 5)]
			[StringLength(8, ErrorMessage = "长度不可超过8")]
			public object c_agency { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "仓库保管员", Order = 6)]
			[StringLength(8, ErrorMessage = "长度不可超过8")]
			public object c_keeper { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "制单人", Order = 7)]
			[StringLength(8, ErrorMessage = "长度不可超过8")]
			public object c_clerk { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "备注", Order = 8)]
			[StringLength(40, ErrorMessage = "长度不可超过40")]
			public object c_comment { get; set; }

            [ScaffoldColumn(true)]
            [Display(Name = "状态", Order = 9)]
            [StringLength(10, ErrorMessage = "长度不可超过10")]
            public object i_sign { get; set; }


    }


}

